package com.edu.dao;

import com.edu.entity.OrderEntity;

import java.util.LinkedList;

/**
 * com.edu.dao
 * 2024/7/11 9:01
 *
 * @author Fancy
 * @version 1.0
 */
public interface OrdersDao {
    /**
     * 查询当前用户还未结算的订单
     * @return 返回订单号orderId
     */
    int getOrderIdNoSettled(int userId);

    int createOrder(int userId);

    LinkedList<OrderEntity> getAllOrderByUserId(int userId);

    int updateOrderStatus(int orderId, String newStatus);

    int deleteOrder(int orderId);
}
